<%--
功能: 专场目录multiSelect
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ attribute name="items" type="java.util.List" required="true"
	description="目录的可供选择,需传入list对象"%>
<%-- 注意该multiselect以categoryFullPath为内容，不考虑categoryId--%>
<c:if test="${not empty items}">
	<c:set var="basicDepth" value="${items[0].depth}" />
	<select id="sc_categoryPaths" name="categoryPaths" size="6" multiple="multiple" style="width:150px;" class="selecttxt">
		<option value="1"><fmt:message key="catalog.all"/></value>
	<c:forEach items="${items}" var="category" begin="0">
		<option value="${category.categoryPath}">
		<c:forEach var="i" begin="1" end="${category.depth-basicDepth}">-</c:forEach>
		${category.categoryName}</option>
	</c:forEach>
	</select>
</c:if>